
<nz-space style="text-align:center">

      <input *nzSpaceItem nz-input placeholder="输入 key" style="width: 100px" [ngModel]="redisKey"/>

      <button *nzSpaceItem nz-button nzType="primary"
              [nzLoading]="normalLoading"
              (click)="normal()"
              nz-tooltip nzTooltipTitle="不设置锁持续时间，业务 10s，期间不释放锁">
        锁
      </button>

      <button *nzSpaceItem nz-button nzType="primary"
              [nzLoading]="limitLoading"
              (click)="limit()"
              nz-tooltip nzTooltipTitle="设置锁持续时间，业务 10s，5s 后自动释放锁">
        含持续时间锁
      </button>

      <button *nzSpaceItem nz-button nzType="primary"
              [nzLoading]="lockLoading"
              nz-tooltip nzTooltipTitle="锁已释放">
        可获取锁
      </button>

  <button *nzSpaceItem nz-button nzType="primary"
          [nzLoading]="tryLoading"
          (click)="tryLock()"
          nz-tooltip nzTooltipTitle="尝试获取锁，一次">
    尝试获取锁
  </button>

  <button *nzSpaceItem nz-button nzType="primary"
          [nzLoading]="tryTimeLoading"
          (click)="tryTimeLock()"
          nz-tooltip nzTooltipTitle="3s内尝试获取锁">
    3s内尝试获取锁
  </button>

</nz-space>
